// 引入Express对象
var express = require('express');
var router = express.Router();

const saveCosFileBy64 = require('../controllers/txMac/saveCosFileBy64');//base64上传保存为图片
const deleteCosFile = require('../controllers/txMac/deleteCosFile');//删除上传的图片文件
const uploadCosImage = require('../controllers/txMac/uploadCosImage');//上传图片到腾讯云COS（上海存储桶）

router.post('/deleteCosFile', deleteCosFile);
router.post('/saveCosFileBy64', saveCosFileBy64);
router.post('/uploadCosImage', uploadCosImage);//新增：上传图片到COS

// 导出路由，供app.js文件调用
module.exports = router;
